package com.ziyun.erp.web.api;

import io.renren.common.utils.R;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author zh
 * @date 2018/11/2310:37
 */
@RestController
@RequestMapping("port/clearCache")
public class ClearCacheController {

    @RequestMapping("/clearMenuCache")
    @CacheEvict(value="erp-user-menu-cache", allEntries=true)
    public R clearMenuCache() {
        return R.ok();
    }
}
